import { RECORD_STATUS } from '@/enum/common';
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from './base.entity';
import { User } from './user.entity';

@Entity('study_match_result')
export class StudyMatchResult extends BaseEntity {
  @PrimaryGeneratedColumn({
    type: 'int',
    name: 'id',
    comment: '学习伴侣匹配id，主键，自增',
  })
  id: number;

  @Column({
    type: 'int',
    name: 'match_one',
    comment: '需要匹配的用户id',
  })
  matchOne: number;

  matchOneUserInfo: User;

  @Column({
    type: 'int',
    name: 'match_two',
    comment: '需要匹配的用户id',
  })
  matchTwo: number;

  matchTwoUserInfo: User;

  @Column({
    type: 'int',
    name: 'integral',
    comment: '任务积分',
    default: 0,
  })
  integral: number;
}
